LDFLAGS := $(LDFLAGS)
CFLAGS := $(CFLAGS) -Wall -pedantic
CXX = g++

exp = basic


BINARY = $(addsuffix Experiment, $(exp))

ESRC =  $(addsuffix .cpp, $(BINARY))
EOBJ = $(addprefix build/, $(addsuffix .o, $(basename $(ESRC))))

all: $(EOBJ) 
	${CXX}  $(LDFLAGS) $^ -lm -lrlexperiment -lrlgluenetdev  -lrlutils -o $(BINARY)
	
build/%.o: %.cpp
	${CXX}  $(CFLAGS) -o $@  -c $<


clean:
	rm -rf $(BINARY)  build/*.o









